package com.jungle.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jungle.common.core.domain.MybatisBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OSS对象存储对象
 *
 * @author Lion Li
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_oss")
@Entity
@Table(name = "sys_oss")
@org.hibernate.annotations.Table(appliesTo = "sys_oss", comment = "OSS对象存储对象")
public class SysOss extends MybatisBaseEntity {

    /**
     * 对象存储主键
     */
    @TableId(value = "oss_id")
    @Id
    @Comment("id")
    @Column(name = "oss_id")
    private Long ossId;

    /**
     * 文件名
     */
    @Comment("文件名")
    @Column(name = "file_name")
    private String fileName;

    /**
     * 原名
     */
    @Comment("原名")
    @Column(name = "original_name")
    private String originalName;

    /**
     * 文件后缀名
     */
    @Comment("文件后缀名")
    @Column(name = "file_suffix")
    private String fileSuffix;

    /**
     * URL地址
     */
    @Comment("URL地址")
    @Column(name = "url")
    private String url;

    /**
     * 服务商
     */
    @Comment("服务商")
    @Column(name = "service")
    private String service;

}
